﻿using System.Windows;
using System.Windows.Controls;
using MPlayer.Common;

namespace FrontDisplay.Music
{
    /// <summary>
    /// Interaction logic for MusicPlayerSelection.xaml
    /// </summary>
    public partial class MusicPlayerSelection : UserControl
    {
        public MusicPlayerSelection()
        {
            InitializeComponent();
        }

        public MusicPlayerSelection(MusicClientManager manager)
        {
            InitializeComponent();
            foreach (IMusicPlayer player in manager.Players)
            {
                MainPanel.Add(new TextBlock { Text = player.GetType().ToString() });
            }
        }
    }
}
